#ifndef FONTFORMAT_H
#define FONTFORMAT__H
#pragma pack(push,1)

class ITexture;

//---------------------------------------------------------
//	a character within a font
//---------------------------------------------------------
typedef struct
{
	unicode	character;
	u16		pad;
	u16		posX,posY;
	u16		width,height;
	s16		preAdvance,postAdvance;

} SFontChar;

//---------------------------------------------------------
//	font data
//---------------------------------------------------------
typedef struct
{
	char		name[64];		// name of the font
	HASH		textureName;	// hash of the name of the texture
	u32			fontSize;		// size of font in pixels (its height)
	u32			numChars;

	SFontChar	*pChars;
	ITexture	*pTexture;		// texture pointer (to be filled out)

} SFontData;

#pragma pack(pop)
#endif
